a = input('请输入一行字符')
b=a.split(' ');

print(f'输入的单词数{len(b)}')
for i in b:
    print(f'{i}:{len(i)}')